import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import store from './store/index'
import * as ElIconModules from '@element-plus/icons'

const app = createApp(App)
app.use(router)
app.use(store)
app.use(ElementPlus)
app.mount('#app')

for(let iconName in ElIconModules){ 
    if (Reflect.has(ElIconModules, iconName)) {
        app.component(iconName,  ElIconModules[iconName])
    }
}
